home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / suntar1.cpt / gc / how to compile it < prev    next >
Encoding:
Text File  |  1992-06-20  |  1.1 KB  |  24 lines

  1.  
  2. Suntar 1.0 and 1.01 used the standard libraries of Think C
  3. with a few extensions (really, those libraries have some features
  4. which for some unknown reason are not exploited by the external
  5. interface, these extensions simply made them usable).
  6.  
  7. This little program uses some of those extensions to guide who
  8. wishes to use them.
  9.  
  10.  You must have Think C (we used version 4.02).
  11.  Think C comes with a project file named ANSI, plus the source 
  12. code of its routines: make a copy of ANSI and call it "my ANSI" 
  13. (you could use the original, but modifying an original file is 
  14. always a bad idea).
  15.   Open "my ANSI" and remove the file "console.c".
  16.   Add the two files "my console.c" (which replaces the old "console.c")
  17. and "my window.c" (which is new) and compile them.
  18.   Now, you may open the project file and compile.
  19.  
  20. For doing the porting of this two-window application to the Mac
  21. I took only a few minutes (plus several hours of crashes due to
  22. having relied on int, long and char* being the same size, what
  23. is true on the QL (and in MPW C) but not in Think C. Sigh ! )
  24.                   Gabriele Speranza